#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxbyte(byte value)
{
	System_Byte *box = new(,System_Byte);
	box->m_value = value;
	return (System_Object *)box;
}

internal byte ___unboxbyte(System_Object *value)
{
	return ((System_Byte *)value)->m_value;
}

//+ type
Implement_Type(System_Byte,System_Object,)
Implement_DefaultCtor(System_Byte,System_Object)
System_Type _byteType = { (__typeCtor)null, L"byte", (__typeBoxer)&___boxbyte, (__typeUnboxer)&___unboxbyte, (char*)default(byte), _TypeFlags_Value };
Declare_System(System_Byte, byte)
Implement_System(System_Byte, byte)
